package PTA06;
import java.util.Arrays;
import java.util.Scanner;
public class Test5_2{
	public static void main(String[] args) {
		 Scanner in=new Scanner(System.in);
		 int n=in.nextInt();
		 int[] arr = new int[n]; 
			for(int i = 0; i < arr.length;i++){  
		            String inputInt = in.next(); 
		            try{
		            	   arr[i] = Integer.parseInt(inputInt);  
		            }catch(NumberFormatException e){
		            	System.out.println(e);
		            	i--;
		            }     
		       }
			 System.out.println(Arrays.toString(arr));
	}
}